package com.laowang.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 合伙人对象 my_cyh_partner
 *
 * @author laowang
 * @date 2024-01-08
 */
@NoArgsConstructor
@Data
public class MyCyhPartner implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称", required = false)
    private String name;

    /**
     * 一级金额
     */
    @Excel(name = "一级金额")
    @ApiModelProperty(value = "直推会员金额", required = false)
    private Integer fixedAmount;

    /**
     * 一级金额次数
     */
    @Excel(name = "一级金额次数")
    @ApiModelProperty(value = "直推次数", required = false)
    private Integer oneNumber;

    /**
     * 二级金额
     */
    @Excel(name = "间推会员金额百分比")
    @ApiModelProperty(value = "间推会员金额百分比", required = false)
    private BigDecimal indirectAmount;

    /**
     * 一级合伙人金额
     */
    @Excel(name = "一级合伙人金额")
    @ApiModelProperty(value = "直推合伙人金额百分比", required = false)
    private BigDecimal onePartner;

    /**
     * 二级合伙人金额
     */
    @Excel(name = "二级合伙人金额")
    @ApiModelProperty(value = "间推合伙人金额百分比", required = false)
    private BigDecimal twoPartner;

    private Integer price;//价格

    private Integer vipLevel;//对应会员等级

    private Integer isEnable;//是否启用

    private BigDecimal fullFixedAmount; // 满直推会员次数金额百分比

    private BigDecimal teamRewards; //团队奖励


    private BigDecimal onePromo; //合伙人推荐推荐官佣金百分比

    private BigDecimal merchant; //推荐商家佣金百分比


    private BigDecimal highVip; //推荐商家佣金百分比

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date ctime;


}
